#ifndef TNOTIFYWINDOW_H
#define TNOTIFYWINDOW_H

#include <QWidget>
#include <QtGui>


class TNotifyWindow : public QWidget
{
    Q_OBJECT
public:
    explicit TNotifyWindow(QString Title, QString Text, int pos = 0, QWidget *parent = 0);
    TNotifyWindow* thisObject;
    QList<QPropertyAnimation*> animationList;
    void animateDown (int pixels);
    void animateHide  (void);

protected:
    void showEvent(QShowEvent * event);

private:
    QLabel* message;
    QDesktopWidget* desktop;
    QTimer* timer;
    const int toolBarHeight;
    QRect targetRect;
    QSequentialAnimationGroup* animation;

signals:
    void requestDelete(TNotifyWindow* thisObject);

public slots:

private slots:
    void sendRequestDelete(void);
    void clearAnimation (void);

};

#endif // TNOTIFYWINDOW_H
